<div class="row-fluid">
    <a style="border:1px solid #ccc" class="block-heading" data-toggle="collapse">列表数据</a>
    <div class="well">
        <div class="btn-toolbar">
            <!--<button class="btn btn-primary ifrm" data-url="/goods/addGoods" data-width="770" data-height="730" data-title="添加商品" data-params="sum/<?=$enckey?>" style="position:relative;float:right;padding:3px 6px;margin-right:10px">添加商品</button>-->
            <form>
                <label style="display: inline;">商品名称：</label><input class="input input-medium" placeholder="商品名称" type="text" name="goods_title" value="<?=I('get.goods_title')?>" />
                <label style="display: inline;">&nbsp;品牌名称：</label>
                <select style="width: 120px" name="brand_name">
                    <if condition="$brand">
                    <option value="">全部品牌</option>
                    <foreach name="brand" item="vo">
                        <option value="{{$vo.brand_name}}" <if condition="$vo['brand_name'] eq I('get.brand_name')">selected</if> >{{$vo.brand_name}}</option>
                    </foreach>
                    <else />
                        <option>没有数据</option>
                    </if>
                </select>
                <label style="display: inline;">&nbsp;入库状态：</label>
                <select style="width: 100px" name="status">
                    <option value="">全部</option>
                    <option value="0" <if condition="I('get.status') eq 0 and I('get.status') neq null">selected</if> >未入库</option>
                    <option value="1" <if condition="I('get.status') eq 1">selected</if> >已入库</option>
                </select>
                <input type="hidden" value="<?=I('get.res')?>" name="res" />
                <button class="btn btn-info" style="margin:-9px 0 0 15px"><i class="icon-search"></i> 搜索</button>
            </form>
        </div>
        <hr>
        <table class="table">
            <thead>
            <tr>
                <th style="text-align:center">商品SkuID</th>
                <th style="text-align:center">商品图片</th>
                <th style="text-align:center">商品标题</th>
                <th style="text-align:center">品牌名称</th>
                <th style="text-align:center">库存状态</th>
                <th style="text-align:center">商品价格</th>
                <th style="text-align:center">操作</th>
            </tr>
            </thead>
            <tbody>
            <?php if($getData){?>
            <foreach name="getData" item="vo">
            <tr>
                <td style="text-align:center;vertical-align:middle">{{$vo.sku_id}}</td>
                <td style="text-align:center;vertical-align:middle"><img src="<?=$vo['goods_img']?>" style="width:100px" /></td>
                <td style="text-align:center;vertical-align:middle">{{$vo.goods_title}}</td>
                <td style="text-align:center;vertical-align:middle">{{$vo.brand_name}}</td>
                <td style="text-align:center;vertical-align:middle">{{$vo.store}}</td>
                <td style="text-align:center;vertical-align:middle">{{$vo.goods_price}}</td>
                <td style="text-align:center;vertical-align:middle">
                    <if condition="$vo['goods_id'] eq 0">
                        <a class="ifrm btn btn-info" href="javascript:void(0)" data-url="/kaola/goodsEdit" data-width="770" data-height="730" style="padding: 0px 4px;" data-title="修改项目" data-params="id/{{$vo.id}}?>"><i class="icon-pencil"></i></a>&nbsp;&nbsp;
                    <else/>
                        <span class="label label-info">已入库</span>
                    </if>
                </td>
            </tr>
            </foreach>
            <?php }else{?>
            <tr><td style="text-align:center;vertical-align:middle" colspan=8>暂无数据</td></tr>
            <?php }?>
            </tbody>
        </table>
        <span style="float:right;margin-top:-44px"><?=$page?></span>
    </div>
</div>